package run.siyuan.manag.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import run.siyuan.manag.entity.SysDict;
import run.siyuan.manag.entity.SysUser;
import run.siyuan.manag.mapper.SysDictMapper;
import run.siyuan.manag.service.SysDictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 字典表 服务实现类
 * </p>
 *
 * @author siyuan
 * @since 2021-01-13
 */
@Service
public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> implements SysDictService {

    @Override
    public Page<SysDict> sysDictPage(Page<SysDict> requestPage) {
        List<SysDict> list = baseMapper.sysDictPage(requestPage);
        return requestPage.setRecords(list);
    }
}
